#169247 by profix898 slightly modified: fix E_NOTICE when form_id is not set on a non-programmed form