TEIIDDES-2009 added check for proxied EObject to prevent NPE
TEIIDDES-2007 added null datasource check because query on server might be null.