Fix throwing exception when 'output' block is not defined

 * Deleted exception when 'output' block in REST_API task
   is not defined. In this case result is the whole object
   returned from extract_state_result

Fixes bug: #1280117

Change-Id: I8143283133994d39e34e9c82493b2cff67fa0d59