Fix infinite loop in BitmapData.floodFill