Basic clean up of nfc_manager.js
Apply Thomas's patch for allowing null Ndef messages.