Fixed incorrect results for partial objectIds with an odd number of characters.

Fixes #284
Corrected filtering logic.