Fixed resolving of deep dependency graphs (the exit condition of the resolver loop was wrong).