Use html if content-type header is missing

This prevents crashes when server doesn't send content-type header.