Tried to fix an intermittent problem running a feature test in TravisCI.

It's probably a timing problem (a page is requested while a database insert is still running in the background, without giving enough time for the database transaction to finish).