[fix] Fix cases where the URL protocol scheme is not parsed correctly

IE 11 returns an empty string when using a protocol relative URL.
See #242