Fixes #6373

Probably at least, 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.
Merge pull request #6414 from PsiOmegaDelta/Xeno

Fixes #6373