failing test of embedded records in a filter

I get the following error when using a `filter` with a server query for embedded records:

    TypeError: Cannot call method 'hasOwnProperty' of undefined

I don't get the same error with a normal `find`, so I assume the error is in the filter logic somewhere.

This pull request contains a failing test to demonstrate the problem.