PHP-987: Fixed reusing the batch object for a new batch