When setting AUTHENTICATOR_ATTACHMENT_NO_PREFERENCE authenticatorAttachment becomes null in the serialized output. Safari breaks with a TypeError if this happens. authenticatorAttachment should instead be removed from the output, null is not a valid value, according to Safari.