Fixed bug in traversing for a list of tenants

Signed-off-by: Ondrej Koch <o.koch@zerusnet.com>