MDL-40422 Grader report: non-graded cells break AJAX mode

The AJAX editing mode didn't account for non-graded cells (either locked
cells or non-graded items), silently failing to initialise and thus
dropping back to non-AJAX mode (with the active "update" button at the
bottom).