Fix layer tree issue on hiding-displaying layers on folder collapsed check