[REG2.064] Issue 11965 - Segfault on garbage

https://d.puremagic.com/issues/show_bug.cgi?id=11965

Don't create `VarDeclaration` with `ident == NULL`.