Core/Misc: Fix static analysis issues
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore