reviewed by bbruggerman fixes ZEN-13296 do not allow expanding folders that have no children