add a check as to whether icon_info is None

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1036273