Fixed incorrect results for partial objectIds

Performing lookups with partialIds with an odd number of characters returned incorrect results.  This pull request fixes that.

Fixes #284