TEIIDDES-2203 added null check on eObject.getResource()