Better ignoring of submit events. Fixes intermine/intermine#335