Rescue SyntaxError when evaluate expression of a condition

https://bugzilla.redhat.com/show_bug.cgi?id=1155284
Merge pull request #916 from bzwei/condition_eval_exception

Rescue SyntaxError when evaluate expression of a condition