prevent null pointer exception when the error happens at the very begining and updated_resources does not exist yet [#5]
Merge pull request #6 from mhorbul/master

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