Avoid exception with empty results from Splunk in XML result reader

Fixed code and also improved unit tests to cover this better.