Bug 931367 - UnboundLocalError when generating an XML report with no results. r=dhunt