Fix crash when no tags are selected for deletion