Disable the refresh and share button if no page is currently loaded.
Fix reloading pages after network error