RUBY-662 prevent ObjectId initialization with bad data