Handling errors in parsing response and communicate with remote gerrit

Signed-off-by: Yaniv Bronhaim <ybronhei@redhat.com>