For #27681 - Fixed bug when key populated from the work area is optional
- This fixes the problem where files weren't being found when a key that
is populated with a value from the current work area is optional in the
work file template and absent from the file name on disk.