MDL-61107 quiz editing: handle invalid Maximum grade input