check request body for nil in perform_request