Fix MBS.validate_module_list to not remove modules with the same NSV but different context.
There was missing `new_modules.append(module)` line in this method,
but in this commit I also reformatted the method a bit to use
defaultdict and also fix detection of duplicate modules in a input
list.