Don't emit dataChanged for invalid indices
getQModelIndex can return an invalid index. If that happens, we emit dataChanged for an invalid index, which is incorrect and may cause errors in other models.
getQModelIndex can return an invalid index. If that happens, we emit dataChanged for an invalid index, which is incorrect and may cause errors in other models.