Continue download java if connection was broken

Change-Id: I3054c175f5efa648fa13bb7c4c4acc66cfe6ebd2
Partial-bug: #1338569