eeprom.js: check for undefined

* Per https://github.com/jadonk/bonescript/issues/35