Fix null IDs causing write failure. This does not fix all Write cases, NFC demo is broken for anything but dummy text and url after Uint8Array conversion.
Convert nfc_manager.js from module to class style. Fix nits.