The value returned by getNodeURL is a now a list of URLs.  So, the check for success is that the length of the URL list is larger than 0, not just that the URL variable is defined.  Perhaps this should be an exception catch.