Fix of NPE for model elements which are not "mass"-selectable after
import because they do some compartments do not have a graphical viewer
until the clabject was selected once.
generated source code.