Fixed Branch.getLastDescendant to managed collapsed note, Ticket0544
Fixed empty notes (no descendant) considered collapsed by default