kconfig: fix return value of do_error_if()