fix issue with extracting unused require gettext modules

crashing in such cases is not good, we now display a warning, instead.
This allows such problems to be recognized and fixed.