updating logic in locations template to not output list items when a state has no locations