Fixes #6373

Fixes #6373. Probably, the bug report isn't clear on which machine specifically that's affected.
The template is used by the xeno geosample scanner didn't work properly at least and has been fixed.