Fix divided by zero issue in case of words are not found in dict.