Use the #id reader instead of the nil @id variable

@mdaines-r7 Should `ScanTemplate` set `@id`? `ScanTemplateSummary` does. The use case is different since we read/write to the XML every time for the id of the full scan template class though.