Fix startup errors after

Fix startup errors after https://github.com/TrinityCore/TrinityCore/commit/e5928e13d705e6bb50571742f6c967c559f983ee
ref: https://github.com/TrinityCore/TrinityCore/issues/9811