sw: clean up some defensive programming in modcfg.cxx
sw: clean up some defensive programming in modcfg.cxx

Change-Id: I901d934d1c2bdf6f15760292481091eb740dfda1

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core