Fixed Collection::sync() method bug to be more consistent in case of error handling and passing.