Fixing a bug on dependency checks throwing exceptions.