js: populate active field only if it exists in the form
js: populate active field only if it exists in the form

The affected function will be used in forms that do not
have 'active' box. So attempt to populate only if the
box exists.

Signed-off-by: Ilija Hadzic <47a09d4a4430975766160361f65fc72633be50b6@gmail.com>

ihadzic/jim,ihadzic/jim,ihadzic/jim