#56508 by chx (modified), Remove notices from form.inc and move theme_form_element from theme.inc to form.inc.