Remove undefined response in proxy error event listener