Fixed PHP-554: MongoId should not get constructed when passing in an invalid ID.
Merged pull request #321