don't fail horribly on null trmk templates

it is possible that for access control reasons, templates in trmk can be null.