DependencyGraph: Rescue from argument exception.
Fixes #736.
Merge pull request #949 from am11/master

DependencyGraph: Rescue from argument exception