Added check for invalid ids to make $in and $nin tests pass
Bumped version number to 0.5.1