Handle circular deps, instead of just resolving to nothing