GEOT-446, CustomPaletteBuilder problem with strange tiling throws except...

Fix for CustomPaletteBuilder