Added error handling for remote git commands

Do not fail if git wasn't able to do pull

Fixes bug 1224619

Change-Id: I768ee1f9b1fe6f6fbc9e928ba2f99d7c9dd6f021