move templateEnv and modelEnv out of try block

Change-Id: Ic08d53593a226fac88a1bcfe510d26f1223cc8d8
1 file changed