[1.5.x] (Hopefully) fixed a failure in a selenium test.

No forward port to 1.6 since it has new transactionmanagement. The
wait_page_loaded should ensure that the liveserver has time to tear
down properly after the submit.