Preventing replacing of templates

(bug 48567)

Change-Id: Ib5d4bf053e53cd51359624899e494ac116e6122a
Merge "Preventing replacing of templates"