base: Fix null dereference when qualifying module path
base: Fix null dereference when qualifying module path

This happens because resolve_path_dots() can return null for
invalid paths.

Closes #1504
Reviewed-by: Marius Vollmer <bb11c6e942c5cc765df5f04da146b3198127a7a3@redhat.com>

xhad/cockpit,dperpeet/cockpit,dperpeet/cockpit,stefwalter/cockpit,larsu/cockpit,sgallagher/cockpit,darioajr/cockpit,stefwalter/cockpit,evol262/cockpit,mareklibra/cockpit,larskarlitski/cockpit,harishanand95/cockpit,moraleslazaro/cockpit,fridex/cockpit,moraleslazaro/cockpit,harishanand95/cockpit,michalskrivanek/cockpit,FireDrunk/cockpit,mareklibra/cockpit,martinpitt/cockpit,FireDrunk/cockpit,sub-mod/cockpit,darioajr/cockpit,matobet/cockpit,moolitayer/cockpit,mvollmer/cockpit,andreasn/cockpit,stefwalter/cockpit,Scribery/cockpit,evol262/cockpit,larskarlitski/cockpit,michalskrivanek/cockpit,SotolitoLabs/cockpit,evol262/cockpit,cockpituous/cockpit,zigitax/cockpit,maxamillion/cockpit,xhad/cockpit,nmav/cockpit,maxamillion/cockpit,maxamillion/cockpit,maxamillion/cockpit,vbatts/cockpit,martinpitt/cockpit,cockpituous/cockpit,mareklibra/cockpit,Scribery/cockpit,larsu/cockpit,darioajr/cockpit,moolitayer/cockpit,sgallagher/cockpit,cockpit-project/cockpit,moraleslazaro/cockpit,SotolitoLabs/cockpit,darioajr/cockpit,firebitsbr/cockpit,sgallagher/cockpit,cockpituous/cockpit,deryni/cockpit,haiyangd/cockpit_view,Thermionix/cockpit,mareklibra/cockpit,vbatts/cockpit,deryni/cockpit,deryni/cockpit,vanloswang/cockpit,larskarlitski/cockpit,petervo/cockpit,mareklibra/cockpit,vanloswang/cockpit,vbatts/cockpit,moraleslazaro/cockpit,harishanand95/cockpit,michalskrivanek/cockpit,matobet/cockpit,garrett/cockpit,arilivigni/cockpit,arilivigni/cockpit,Armstrong1992/cockpit,mvollmer/cockpit,FireDrunk/cockpit,Thermionix/cockpit,harishanand95/cockpit,vanloswang/cockpit,petervo/cockpit,vanloswang/cockpit,dperpeet/cockpit,larsu/cockpit,stefwalter/cockpit,cockpituous/cockpit,Thermionix/cockpit,andreasn/cockpit,xhad/cockpit,jscotka/cockpit,SotolitoLabs/cockpit,Armstrong1992/cockpit,xhad/cockpit,stefwalter/cockpit,kkaempf/cockpit,kkaempf/cockpit,fridex/cockpit,netzvieh/cockpit,arilivigni/cockpit,xhad/cockpit,vanloswang/cockpit,matobet/cockpit,Scribery/cockpit,larsu/cockpit,fridex/cockpit,nmav/cockpit,petervo/cockpit,michalskrivanek/cockpit,moraleslazaro/cockpit,petervo/cockpit,firebitsbr/cockpit,sub-mod/cockpit,netzvieh/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,martinpitt/cockpit,netzvieh/cockpit,martinpitt/cockpit,vanloswang/cockpit,dperpeet/cockpit,jscotka/cockpit,netzvieh/cockpit,denysvitali/cockpit,cockpituous/cockpit,dperpeet/cockpit,deryni/cockpit,haiyangd/cockpit_view,zigitax/cockpit,cockpit-project/cockpit,denysvitali/cockpit,larskarlitski/cockpit,denysvitali/cockpit,moraleslazaro/cockpit,denysvitali/cockpit,vbatts/cockpit,dperpeet/cockpit,sgallagher/cockpit,dperpeet/cockpit,sub-mod/cockpit,xhad/cockpit,sgallagher/cockpit,cockpit-project/cockpit,garrett/cockpit,vbatts/cockpit,Armstrong1992/cockpit,deryni/cockpit,Thermionix/cockpit,petervo/cockpit,larskarlitski/cockpit,denysvitali/cockpit,deryni/cockpit,mvollmer/cockpit,Armstrong1992/cockpit,evol262/cockpit,haiyangd/cockpit_view,matobet/cockpit,sgallagher/cockpit,larsu/cockpit,kkaempf/cockpit,larsu/cockpit,nmav/cockpit,firebitsbr/cockpit,harishanand95/cockpit,Armstrong1992/cockpit,garrett/cockpit,kkaempf/cockpit,petervo/cockpit,evol262/cockpit,michalskrivanek/cockpit,jscotka/cockpit,matobet/cockpit,sub-mod/cockpit,maxamillion/cockpit,andreasn/cockpit,harishanand95/cockpit,firebitsbr/cockpit,Scribery/cockpit,SotolitoLabs/cockpit,andreasn/cockpit,martinpitt/cockpit,harishanand95/cockpit,larskarlitski/cockpit,arilivigni/cockpit,larskarlitski/cockpit,matobet/cockpit,kkaempf/cockpit,nmav/cockpit,mareklibra/cockpit,zigitax/cockpit,fridex/cockpit,stefwalter/cockpit,garrett/cockpit,mvollmer/cockpit,arilivigni/cockpit,vanloswang/cockpit,nmav/cockpit,sgallagher/cockpit,stefwalter/cockpit,FireDrunk/cockpit,deryni/cockpit,netzvieh/cockpit,xhad/cockpit,petervo/cockpit,netzvieh/cockpit,mvollmer/cockpit,arilivigni/cockpit,haiyangd/cockpit_view,firebitsbr/cockpit,arilivigni/cockpit,sub-mod/cockpit,fridex/cockpit,andreasn/cockpit,mareklibra/cockpit,andreasn/cockpit,fridex/cockpit,SotolitoLabs/cockpit,SotolitoLabs/cockpit,evol262/cockpit,Scribery/cockpit,SotolitoLabs/cockpit,FireDrunk/cockpit,jscotka/cockpit,michalskrivanek/cockpit,garrett/cockpit,jscotka/cockpit,haiyangd/cockpit_view,zigitax/cockpit,darioajr/cockpit,moolitayer/cockpit,jscotka/cockpit,cockpituous/cockpit,zigitax/cockpit,moolitayer/cockpit,andreasn/cockpit,Scribery/cockpit,Thermionix/cockpit,vbatts/cockpit,cockpit-project/cockpit,michalskrivanek/cockpit,Thermionix/cockpit,moolitayer/cockpit,Scribery/cockpit