Fixed exception handling for files with no tags at all.