registry: Use $q.reject() instead of throw in a promise handler
registry: Use $q.reject() instead of throw in a promise handler

More compatible.

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

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