MDL-34433 Check for existence of e and e.target in set_form_changed
MDL-34433 Check for existence of e and e.target in set_form_changed

This is required for cases when code directly calls set_form_changed as
happens with the filepicker.

dilawar/moodle