prevent null pointer exception when the error happens at the very begining and updated_resources does not exist yet [#5]