Avoid infinite loops in ExtJS layertrees caused by empty folders