window: Protect against calling lastnav when the plugin isn't loaded