Check for malloc failure in process_chpw_request

ticket: 7866
target_version: 1.12.2
tags: pullup