[layertree] fix crash with symbology