Render error template in both task creation/edit forms.

Fixed issue 1390.
2 files changed