listitemmanager: Check for NULL tiles before dereferencing them when selection changes
Reported in https://github.com/gtk-rs/gtk4-rs/issues/1673 with a testcase. I don't know if this is the correct fix but it solves the crash and makes the testcase behave correctly at least.