Return nil instead of an empty string if there is no assigned resource