null value bugfix

added handling for null value returns from resources