Fix a TypeError happening when no vms is detected on an HN (OMS-328)