Revert "Fixed possible crash if a tag exists with no name"

This reverts commit 85692e216f829064276c94a6f8397fa1b29ec512.