Fixed bug where we could try to construct a Url from null.

This doesn't have a test case. I am so sorry.