Update path

Only read template if it exists

Prevent undefined index

Change-Id: I00dab18947d1d50f68e46b5a1e15fa4a76f1a73f