Handle empty tag on indexing