#85917Exception in Template Module when having sys_template records in workspaces
Description
Updating our TYPO3 installation to 8.7.19 broke the Template module.
Argument 2 passed to TYPO3\CMS\Core\Imaging\IconFactory::getIconForRecord() must be of the type array, null given, called in /[snip]/vendor/typo3/cms/typo3/sysext/tstemplate/Classes/Controller/TypoScriptTemplateModuleController.php on line 602
This error occurs when you have sys_template records with pid = -1 (i.e. you’re using workspaces).