Core/GameObject: Fix crash added in c6bf7e0b1d615a22c2145c6f4a757a10a9eca92c

Thanks @jackpoz
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore into ghbb
Remove unnecessary check in previous fix
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore into ghbb
更新