Fix NPE on names with no color.

Fixes #89.
Backport fixes from 1.7.10.