Reject the config if condition config has errors. And add log tag.

Test: added unit test.
Change-Id: I7108350978f7c1d0e8e87f22082e19fc76a75631
2 files changed