Fix: MenuItem.getIcon returns null

This fixes issue #1173