Added in missing check (and the value to check from the query) from the fix to the quiz import functionality in the gradebook.