Fix upserting issue due to invalid ObjectID

This fixes an issue in ngMeteor-collections.js that would cause
upserting to fail because of an invalid ObjectID being passed to
collection.update() (as first argument).