Add checks in caller APIs to handle negative return value from crypto get param and crypto get peer param APIs. Change-Id: Ibb138971f347c7ccdacbc93aa38521d5d9536759 CRs-Fixed: 2775328