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

	- added IF clause to safeguard against undefined var