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

cc @robertkowalski

```
Uncaught TypeError: Cannot read property 'getNonEmptyElements' of undefined 
```