Fixed #397 - Exception when trying to add a D project reference.