fixes Form buttonClick bug

described here https://github.com/silverstripe/silverstripe-framework/pull/2506#issuecomment-30998757