Manually resolve relative URL to prevent assertion in WebKit.

This fixes a crash in debug builds on Windows.