Identifier id is always null in function instantiated_unit, a member variable is read for the constructor of EntityInstantiation in case of vhdl code like:
ALabel : Entity work.AnEntity(Implementation)
I fixed it locally by setting the parameter of the constructor directly to null as it is not used in the EntityInstantiation class anyway...