Fixup uncaught TypeError in DOMUtils.isEmpty

this is caused by missing braces which ends up in a different evaluated operator precedence
this bug only occurs if no schema was set, have a look at the unit tests
Merge pull request #419 from skrings/isempty_with_non_empty_elements

Fixup uncaught TypeError in DOMUtils.isEmpty