Core/Calendar: fix possible crash, see https://github.com/raczman/TrinityCore/commit/093f1099f8917baae47ce92a83c8a7fe1b4c389d