Check for location.port truthy

According to the spec for `location`, it's possibly for `port` to be null:

http://www.w3.org/TR/Window/#location

In Steal's node port this is the case and throws an exception. Will submit this fix upstream as well.