Fix modified template values in AR add form

With this fix, the template UID hidden field is cleared, so that
no template will be written to the outcoming AR, but the AR add form will keep the rest of the template specific values.

Fixes #1257