test: Don't crash when TEST_ATTACHMENTS is unset
test: Don't crash when TEST_ATTACHMENTS is unset

The code didn't take "set -u" into account.

Closes #3087
Reviewed-by: Stef Walter <8a7fbf0f15d3ad982af54ef28f5c117d2494b76c@redhat.com>

FireDrunk/cockpit,stefwalter/cockpit,vanloswang/cockpit,petervo/cockpit,FireDrunk/cockpit,haiyangd/cockpit_view,larskarlitski/cockpit,mareklibra/cockpit,vanloswang/cockpit,arilivigni/cockpit,garrett/cockpit,harishanand95/cockpit,cockpituous/cockpit,jscotka/cockpit,harishanand95/cockpit,Scribery/cockpit,mvollmer/cockpit,michalskrivanek/cockpit,cockpit-project/cockpit,dperpeet/cockpit,larsu/cockpit,cockpituous/cockpit,dperpeet/cockpit,harishanand95/cockpit,martinpitt/cockpit,moraleslazaro/cockpit,FireDrunk/cockpit,Scribery/cockpit,petervo/cockpit,larskarlitski/cockpit,andreasn/cockpit,michalskrivanek/cockpit,andreasn/cockpit,jscotka/cockpit,petervo/cockpit,petervo/cockpit,sgallagher/cockpit,mareklibra/cockpit,harishanand95/cockpit,matobet/cockpit,jscotka/cockpit,SotolitoLabs/cockpit,martinpitt/cockpit,andreasn/cockpit,martinpitt/cockpit,harishanand95/cockpit,larskarlitski/cockpit,deryni/cockpit,stefwalter/cockpit,deryni/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,mareklibra/cockpit,vanloswang/cockpit,haiyangd/cockpit_view,garrett/cockpit,Scribery/cockpit,larsu/cockpit,cockpit-project/cockpit,deryni/cockpit,stefwalter/cockpit,cockpituous/cockpit,stefwalter/cockpit,matobet/cockpit,arilivigni/cockpit,arilivigni/cockpit,SotolitoLabs/cockpit,stefwalter/cockpit,jscotka/cockpit,larsu/cockpit,michalskrivanek/cockpit,xhad/cockpit,mvollmer/cockpit,vanloswang/cockpit,vanloswang/cockpit,sgallagher/cockpit,petervo/cockpit,andreasn/cockpit,xhad/cockpit,arilivigni/cockpit,deryni/cockpit,haiyangd/cockpit_view,andreasn/cockpit,moraleslazaro/cockpit,FireDrunk/cockpit,cockpituous/cockpit,SotolitoLabs/cockpit,Scribery/cockpit,andreasn/cockpit,cockpituous/cockpit,sgallagher/cockpit,moraleslazaro/cockpit,matobet/cockpit,larskarlitski/cockpit,moraleslazaro/cockpit,xhad/cockpit,harishanand95/cockpit,martinpitt/cockpit,larskarlitski/cockpit,Scribery/cockpit,vanloswang/cockpit,sgallagher/cockpit,dperpeet/cockpit,dperpeet/cockpit,michalskrivanek/cockpit,Scribery/cockpit,arilivigni/cockpit,mareklibra/cockpit,moraleslazaro/cockpit,FireDrunk/cockpit,arilivigni/cockpit,sgallagher/cockpit,xhad/cockpit,mvollmer/cockpit,stefwalter/cockpit,deryni/cockpit,garrett/cockpit,sgallagher/cockpit,michalskrivanek/cockpit,andreasn/cockpit,xhad/cockpit,harishanand95/cockpit,arilivigni/cockpit,michalskrivanek/cockpit,vanloswang/cockpit,Scribery/cockpit,deryni/cockpit,petervo/cockpit,larskarlitski/cockpit,sgallagher/cockpit,dperpeet/cockpit,xhad/cockpit,jscotka/cockpit,cockpit-project/cockpit,larsu/cockpit,stefwalter/cockpit,haiyangd/cockpit_view,mvollmer/cockpit,dperpeet/cockpit,deryni/cockpit,mareklibra/cockpit,matobet/cockpit,SotolitoLabs/cockpit,matobet/cockpit,garrett/cockpit,larsu/cockpit,martinpitt/cockpit,cockpit-project/cockpit,mareklibra/cockpit,SotolitoLabs/cockpit,jscotka/cockpit,petervo/cockpit,dperpeet/cockpit,larsu/cockpit,mareklibra/cockpit,garrett/cockpit,SotolitoLabs/cockpit,SotolitoLabs/cockpit,cockpit-project/cockpit,michalskrivanek/cockpit,matobet/cockpit,larskarlitski/cockpit,haiyangd/cockpit_view,moraleslazaro/cockpit,mvollmer/cockpit,xhad/cockpit