Fix Moodle 2.5 breakage when starting a question attempt. #8346