Added missing check after custom batch request