More undefined variable fixes in forms

More minor fixes to forms. Might be prudent to check $this -> form just once and set a boolean. Otherwise you get this when going to downloads:

```PHP Notice:  Undefined property: API::$form in /home/ubuntu/statedecoded/includes/class.API.inc.php on line 221, referer: http://....compute-1.amazonaws.com/
PHP Notice:  Trying to get property of non-object in /home/ubuntu/statedecoded/includes/class.API.inc.php on line 221, referer: http://...compute-1.amazonaws.com/
PHP Notice:  Undefined property: API::$form in /home/ubuntu/statedecoded/includes/class.API.inc.php on line 224, referer: http://....compute-1.amazonaws.com/
PHP Notice:  Trying to get property of non-object in /home/ubuntu/statedecoded/includes/class.API.inc.php on line 224, referer: http://....compute-1.amazonaws.com/
PHP Notice:  Undefined property: API::$form in /home/ubuntu/statedecoded/includes/class.API.inc.php on line 227, referer: http://....compute-1.amazonaws.com/
PHP Notice:  Trying to get property of non-object in /home/ubuntu/statedecoded/includes/class.API.inc.php on line 227, referer: http://....compute-1.amazonaws.com/```