Fixed crash on malformed or missing defaults.js file.