added stricter Id matching criteria
Merge pull request #27 from Zolmeister/master

Fixed possible error due to ObjectId failing