Don't loop through deps if there are none.

This fixed my problem in issue #212.