Avoid infinite loops in WDFreehandTool (2 issue screenshots).

[Issue screenshot 1](https://raw.github.com/rhcad/touchvg-doc/gh-pages/images/Inkpad-err1.png)
[Issue screenshot 2](https://raw.github.com/rhcad/touchvg-doc/gh-pages/images/Inkpad-err2.png)