DependencyGraph: Rescue from argument exception

Fixes #736.