Like I said I do not know. I would actually have to see your site and debug things. Print out debug info in the files issue the query directly in phpmyadmin to see what results come.
Like I said the albums template above only appears if $albums is not empty. Your subalbums are appearing like they should and show on my site but for some reason on your site the empty box appears.