fixed bug in normalize_resource_name when dealing with empty strings