Fix bug when dependency type doesn't exist in package
Merge pull request #6 from megawac/opt-deps

Fix bug when dependency type doesn't exist in package