Fixed PHP-1109: Upsert should return _id instead of array of ids