Fix crash when clicking empty canvas while loading.
Merge pull request #85 from blackhole89/master

Fix crash when clicking empty canvas while loading.