prevent null pointer exception when the error happens at the very begini...

...ng and updated_resources does not exist yet [#5]