This test makes sure that navigator.isProtocolHandlerRegistered throws the proper exceptions and returns the default state of handler.