Check if icon is null first, no need to cause an exception because of that really, even if we should catch it...

Signed-off-by: Swizzy <swizzy@xeupd.com>