Avoid endless recursion in ToolEvent#middlePoint.

Closes #257.