added check for unresolved proxies to avoid NPE while generator EMF code