Thanks for the help, I changed the code to display my Gallery name - by just copying the line that displays the gallery name instead.
In order for your code to work, I think an unregistered user would have to go by a specific name. It doesn't appear that my site's values match what your code intends, but wasn't able to determine what the magic value was for an unregistered user.
to put it another way, if I modified it this way:
Content visible to verified customers only.
Instead of "Unregistered", then at least my username wasn't being displayed to all registered users who were looking at the photo album index.
Hope this helps.