Empty resource should not cause NPE
Partially typed up resource should not cause exceptions during indexing
(this fixes all completion tests which used to fail since
EFactoryDerivedStateComputer)