repopick: gracefully handle empty/non-JSON server responses

Change-Id: If4b6ca57832bc763ac9a989d9ed027b0702805fd