added a check for a valid dsg object
added a check for a valid dsg object

LyonsLab/coge,asherkhb/coge,asherkhb/coge,asherkhb/coge,asherkhb/coge,asherkhb/coge,LyonsLab/coge,LyonsLab/coge,LyonsLab/coge,LyonsLab/coge,LyonsLab/coge,LyonsLab/coge,LyonsLab/coge,LyonsLab/coge,asherkhb/coge,asherkhb/coge,asherkhb/coge,asherkhb/coge