Fixed premature g_clear_error()

When task fails while being fetched error is prematurely cleared in
archive_finish_callback of both fetch_git.c and fetch_http.c.
This patch moves g_clear_error() to task_handler() after it is sent to the
client.