Engine Error attept to call method "is_valid" (a nil value)

I am playing on the hardest mode. I had a hearthling running away in combat with low health. I was using the move w/out atking flag. She died as I clicked the flag to a new location which prompted this error:


Also I opened the menu to go back to the main screen to start a new game and the client closed completely.