This is similar to bug #79120, ResourceResponse objects can be null, so they should be encoded/decoded as Null.
Created attachment 128702 [details] Patch
Committed r108776: <http://trac.webkit.org/changeset/108776>