Fix bug: Erroneous error message in the case of 'goto' at the end of method or match case.