fixed crash in get_icon
Merge pull request #67 from BrainDamage/master

Fix crash in get_icon