Fix bug where an undefined id would trigger a `findAll`

This has been observed by the eagle eyes of @stefanpenner, reported in
issue #1705.
Merge pull request #1706 from pangratz/youve_gotta_find_them_all

Fix bug where an undefined id would trigger a `findAll`