fix: Registering minified modules without dependencies throws error

Uglify-js removes the declaration function parameter from declaration functions that don't have dependencies because the argument is not used in the declaration function in this case.
I added the extra check for the number of dependencies to not throw an error in this case.