Fixed a bug that was introduced from the refactor

* Form._success_data didn't exist by default, so checking it equaling None broke. In addition, tests hadn't been updated for the changes success_json_generate.