[coord-setter] Fix memory access in case of malloc failure Fixes https://oss-fuzz.com/testcase-detail/5383702943432704