Update localize.js

Add a try block around the reading of the entry, so you can know what key is missing.