core: make Base_edit raise in case of wrong matrixbox keys

This should not happens, but if this happens we should not just return
in the middle of the loop, because this returned value is not used,
so we would just silently edit partially.
6 jobs for fix/Base_edit_cell
in 0 seconds, using 0 compute credits, and was queued for 0 seconds