Hi!, thanks for the report. I am going to a need a little more then that to be able to do something about the error, though. This bit only shows where the error occurred, but not how to avoid it.
Can you provide a save file? You can attach it to github issue you already made.
And also a short description what I need to do within your save-file so I can reproduce the error myself?
Once I can produce the error myself, I should be able to trace what's going wrong and make changes to avoid it.