This test makes sure that navigator.registerProtocolHandler throws the proper exceptions and has no-op default implementation.