Handle invalid model indices gracefully
data() being called with an invalid model index seems to happen during normal operations here, with something in the proxy model chain not catching that case (due to a row being filtered out presumably?).
data() being called with an invalid model index seems to happen during normal operations here, with something in the proxy model chain not catching that case (due to a row being filtered out presumably?).