Fixed addListener for onFormSubmit

When adding an onFormSubmit listener via the addListener interface, the listener was not added properly.

There is currently no test case for this, by the way.