Fix Linkbucks

- Fix disableLeavePrompt(): Sometimes, unsafeWindow or unsafeWindow.document.body did not exist,
this caused the function to throw an error.