more robust raster color map conversion from 1.8 project and style file, fixes #7023