Fix for issue-1414: Grade doesn't get updated when grading under TA

Added a check for disabling the released checkbox. Since only admins have that checkbox, disabling it fails for TAs, causing the JavaScript to update the grade and marking state to fail too.