Fix an error traceback when no tags are found.