return empty string if resource is None