Fix: properly hide selected blocks when viz changes
If the user hid a selected block, it was still visible until a selection change. Mark the selection modified when visibility changes, then UpdateDisplayAttributesFromSelection() properly hides the selected block.
Manual backport to release, missed with initial MR !1788 (merged)
CC: @bob.obara @chart3388