BATIK-963: ArrayIndexOutOfBounds in AbstractWMFPainter with 1-bit color images; patch submitted by a6537691, AKA Viliam Durina