Fix SEGFAULT when canceling update

When the update window is closed with cancel
there is a SEGFAULT because it tries to cancel the
HTTP request which might not be initialized if the
update has not been started yet.
So just check if the HTTP object is not NULL.