Fix for NPE in getColorForElementType

Fixes #14