Fixes issue #180: DbSession crashes with autoStart