Fix a crash when un-setting raster band in raster layer properties
Fix crash when changing to paletted renderer (with no colors)