Don't panic on invalid boolean operators

Close #714