Added some null checks on the given coordinates in the SimpleCostModel.
Merge origin/MainBranch into MainBranch
Nullreference bug fix