Fix crash loading amd modules with no dependencies
Merge pull request #22 from hi-impact:fix/define-with-no-deps

Fix crash loading amd modules with no dependencies.
Add test to define without deps.