FIX: Prevent white screen on Safari on back navigation in the same tab (PR #12171)

Fixes an issue on Safari/macOS where the browser returns a white screen with ReferenceError: Can't find variable: ServiceWorkerRegistration in the console when going back to the instance from an external link opened in the same tab.

GitHub