Fixed bug with double error `ident. is ambig....`

Fixed bug, where error `Identifier xyz is ambiguous in current context`
was shown two times instead one.