Fix error propagation for ! and BoolExp

If !x is an error, don't change it to a boolean.
Merge pull request #1789 from donc/bool__error

Fix error propagation for ! and BoolExp