Expander still displayed for record without children
#8518 (closed) was not right because the children is a Sao.Group and so jQuery.isEmptyObject does not work (as we set some attributes).
Also even if the row was expanded if it does not have anymore any children, it should be collapsed.