agent: disallow tags with zero-length key