elistboxcontents: add sanitycheck on template color lookup

Template colors abuse an alpha channel of 0xff, to indicate
the color value should be used as an index in the template data.
However, when a full-transparent color is used, we we will
not have template data. In that case, assume the color
value should be used as-is.