properties with null values crashed criteria.js. Now fixed.
Merge pull request #49 from databasedude/master

"Cannot read property 'limit' of null"