Fix null reference on non-HTTP response exception