sdk: defend against malformed server reply

Change-Id: I236863ab9fee7b5af43402f1beb055dc6ea0e39b
Signed-off-by: Michael Pasternak <mpastern@redhat.com>