Moved init of self.uri.pathname

Because the self.uri.pathname var has a default value that is used later in the method, there is no need to check if it is falsey. Just set the pathname to the default if it wasn't set by the user.