Fixes Warning: Invalid argument supplied for foreach() in magic_form->get_field() (line 66 of C:\wamp\www\portal\sites\all\modules\magic_forms\lib\magic_form.inc).