ensure hue isn't zero before rendering gradient bg