Reject code with un-closed open brackets

[closes #1150]
Merge pull request #1153 from visionmedia/fix/unclosed-brackets-in-attributes

Reject code with un-closed open brackets