Fix the processing of an empty HTML response body from REST-API Change-Id: I23ce1b256b732ed10d6007e69bdc2179a8702dad