Catching null pointer in queries with wrong field
Merge pull request #584 from realm/bp-test-queries-field

Catching null pointer in queries with wrong field