Default Location#protocol and Location#hostname to null