Check if the rating is blank before converting the string to float