[CDE-239] Can't open or edit resource files
	- added IF clause to safeguard against undefined var
Merge pull request #158 from pedrofvteixeira/CDE-239

[CDE-239] Can't open or edit resource files