JBIDE-17530 : ensure we don't read incompletely downloaded files

Signed-off-by: Fred Bricon <fbricon@gmail.com>