If no path has been registered yet, bail out of the unregister function.