Fix NPE when adding ItemTreeListener due to use of Boolean object type.