Bugfix for rewriting of protocol relative URLs