Refactored NfcMessage, removed empty type, replaced by error type,
removed error from flags.