Modification on handleResponse

Return SecurityError to WRT by sending a JSON-RPC request.

Jira issue: WP-684