Fixed PHP-1109: upsert returns an array of ids rather then the _id