bug 947238 - editing pending event w/o template_environment yield error