fixed: HTML generator called instead of LaTeX
fixed: NPE when typedElement has no package