modules/utils: http_query now stores result also in case of 4xx replies

- Applied patch by Mikko Lehto.