java: Make SVWindow more robust (fix three CID issues)
java: Make SVWindow more robust (fix three CID issues)

1386093 Division or modulo by zero
1386096 Division or modulo by float zero
1386101 Division or modulo by float zero

A division by zero would have occurred if both sizeX and canvasSizeX or
sizeY and canvasSizeY were 0.

Catch also negative sizes which don't raise a division by zero exception
but which are also invalid.

Signed-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>

jbarlow83/tesseract,amitdo/tesseract,tesseract-ocr/tesseract,jbarlow83/tesseract,UB-Mannheim/tesseract,stweil/tesseract,amitdo/tesseract,amitdo/tesseract,UB-Mannheim/tesseract,stweil/tesseract,stweil/tesseract,amitdo/tesseract,stweil/tesseract,tesseract-ocr/tesseract,tesseract-ocr/tesseract,UB-Mannheim/tesseract,jbarlow83/tesseract,jbarlow83/tesseract,stweil/tesseract,tesseract-ocr/tesseract,amitdo/tesseract,jbarlow83/tesseract,UB-Mannheim/tesseract,UB-Mannheim/tesseract,tesseract-ocr/tesseract