http exec: fixed a bug when (if?) a QNetworkReply emit error() alone

It is not specified that a finished() signal always follows an error()
signal, thus it is likely that in some cases an error() message can be
emited alone, which would lead to never-ending tasks until this commit.