#648 test existance of 'grade' option before converting it to float