Fix icon alignment bug.
On KDE systems, icon and checkboxes were both visible on the
LayerBox's right click context menu. Early termination
had to be modified to acommodate for this case (we can only
early terminate if we know both Icons and Checkboxes are used.)