Fix selecting collapsed rows on select-all (#1489036)