Core/CoreManager: Core-out-of-bounds bugfix, isValidCoordinates/Location