Fix for Defect 84297. Issue was occurring bec of an additional null

check before creating payload for the request. Fixed it.