avoid bogus memory allocation size in doTilingPatternFill
In case the calculated size of the tiling pattern bitmap is less than 1x1 pixel, we increase only the size of the tiling pattern bitmap and adjust the transformation matrix, but we can also reduce the repeat factor for this now bigger bitmap. This avoids a 'bogus memory allocation size' in several cases!