Fixed a null object dereference in "DSReferenceSelection.BuildOutputAst"