Fixed gcc build without pch
Core/Maps: Fixed crash caused by using invalid coordinates

Closes #12532
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore into ghbb