kubernetes: Minor test fix to appease javascript linters
kubernetes: Minor test fix to appease javascript linters

Coverity is complaining that we can't be sure svc is null.
Lets just add a check.

Reviewed-by: Peter <a316049dd34607c62d4611d63ab22a6454add223@redhat.com>

garrett/cockpit,petervo/cockpit,moraleslazaro/cockpit,petervo/cockpit,michalskrivanek/cockpit,mareklibra/cockpit,mareklibra/cockpit,deryni/cockpit,xhad/cockpit,xhad/cockpit,larskarlitski/cockpit,cockpit-project/cockpit,dperpeet/cockpit,SotolitoLabs/cockpit,deryni/cockpit,stefwalter/cockpit,martinpitt/cockpit,andreasn/cockpit,petervo/cockpit,andreasn/cockpit,andreasn/cockpit,Scribery/cockpit,michalskrivanek/cockpit,moraleslazaro/cockpit,SotolitoLabs/cockpit,michalskrivanek/cockpit,stefwalter/cockpit,harishanand95/cockpit,larskarlitski/cockpit,andreasn/cockpit,cockpit-project/cockpit,martinpitt/cockpit,cockpit-project/cockpit,deryni/cockpit,SotolitoLabs/cockpit,deryni/cockpit,stefwalter/cockpit,andreasn/cockpit,martinpitt/cockpit,michalskrivanek/cockpit,SotolitoLabs/cockpit,petervo/cockpit,deryni/cockpit,moraleslazaro/cockpit,xhad/cockpit,larsu/cockpit,mvollmer/cockpit,mareklibra/cockpit,petervo/cockpit,dperpeet/cockpit,larsu/cockpit,larskarlitski/cockpit,larskarlitski/cockpit,mvollmer/cockpit,larsu/cockpit,cockpituous/cockpit,mvollmer/cockpit,garrett/cockpit,Scribery/cockpit,martinpitt/cockpit,larskarlitski/cockpit,cockpituous/cockpit,stefwalter/cockpit,petervo/cockpit,xhad/cockpit,larsu/cockpit,stefwalter/cockpit,martinpitt/cockpit,dperpeet/cockpit,Scribery/cockpit,xhad/cockpit,stefwalter/cockpit,dperpeet/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,dperpeet/cockpit,deryni/cockpit,garrett/cockpit,mareklibra/cockpit,stefwalter/cockpit,cockpituous/cockpit,mareklibra/cockpit,cockpituous/cockpit,dperpeet/cockpit,andreasn/cockpit,mvollmer/cockpit,mareklibra/cockpit,SotolitoLabs/cockpit,Scribery/cockpit,michalskrivanek/cockpit,SotolitoLabs/cockpit,harishanand95/cockpit,mareklibra/cockpit,SotolitoLabs/cockpit,moraleslazaro/cockpit,larsu/cockpit,mvollmer/cockpit,moraleslazaro/cockpit,larskarlitski/cockpit,Scribery/cockpit,petervo/cockpit,garrett/cockpit,michalskrivanek/cockpit,cockpituous/cockpit,Scribery/cockpit,moraleslazaro/cockpit,garrett/cockpit,harishanand95/cockpit,larsu/cockpit,larskarlitski/cockpit,dperpeet/cockpit,harishanand95/cockpit,andreasn/cockpit,deryni/cockpit,harishanand95/cockpit,harishanand95/cockpit,cockpit-project/cockpit,harishanand95/cockpit,michalskrivanek/cockpit,cockpituous/cockpit,Scribery/cockpit,xhad/cockpit,xhad/cockpit