Don't generate empty modules

Empty modules can be generated if the configured source doesn't capture any files (e.g. 'empty_folder/*.js').