exclude empty tags from tag cache (#1012)