Fix crash if FORUM_DATABASE_DISABLED is set'