Updates payload type discovery to suppress DOMParser errors