[[ Bug 14249 ]] Check before drawing a button's icon, that it has one
Merge pull request #1616 from runrevsebastien/bugfix-14249

[[ Bug 14249 ]] Check before drawing a button's icon, that it has one