Fixed mapping from requestId to window for use in result object.