Replace is_null with isset

To prevent php errors
Merge pull request #1740 from lmm-git/patch-2

[Form] allow template to set the onsubmit tag - check correction