Don't loop through deps is there are none.

This fixed my issue in https://github.com/jspm/jspm-cli/issues/212.