Add retrurnedRecords and the transformed query as possible variables to the result template, add an if statement so sru:records is empty if there is no result for a query.