fixing r.http crash when content-type is missing