buildMongoObject (md5) error handling