Revert a part of cb8a576b

EcoreHelper.getEObject() throws an exception if resource does exists
in workspace, we can't use it directly in FrontendCli