Fix warnings in mod_form.php.