fix an npe in the stagehand templates

Fix an npe - @ussuri, @umop 

(TBR)