Raise NoAnswerError when there is no matching gram.