Fix draw interaction example

This PR fixes the draw interaction example by cherry-picking https://github.com/oterral/ol3/commit/2da1c1d63e8284c1fff8dfb7d520f50f8b3a8fe9 from #1561.

Thanks @oterral.