Improve robustness of the environment opening, in case the database connection is not available at that time.
Authored by: cboos 2007-03-11
Parent: [r4960]
Child: [r4962]