CRAFTERCMS-926: fixed the issue with edit template
Merge pull request #306 from hlim/2.4.x

CRAFTERCMS-926: fixed the issue with edit template