Tolerate `OperationalError` in acntions and viewlets.

An `OperationalError` can be raised when DB-migrations are not yet exectued.
We catch and log them in viewlets and actions in order order to access the `@@manage-upgrades` view
to perform these upgrades.

Fixes #352.