guard against exceptions when detecting current output window URL