bug #3168: Do not update template in datastore post-update rollback