empty tag list when no tags found

not sure if it is the right way to solve the problem, my python skills are inexistent.