Improved error messages for empty XML data.