It used to check if icon was not null or iconSize was not empty, which was wrong.
mentioned in commit 87507955