Ensure the end positions are meaningful even if statement's semicolon is missing. Co-authored-by: Dusan Balek <dusan.balek@oracle.com> Reviewed-by: jjg