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