Fix exception when no content received in HTTP body