Handle invalid XML responses