Prevent moveToNextCell throwing exception when model is shared (fixes
#507)