fixes possible null pointer in tree cell renderer

In some cases, the JLabels in the JTree do not seem to contain icons,
in which case getIcon() returns null. This might be related to the
LaF (Ubuntu?).