Fixes bug when engine tries to use template that does not exist.