Fix validation of modules with no data set

Previously if the data_group and data_type were set but empty it would
fail with not being able to find the data set. As @timmow suggested, be
liberal in what you accept and conservative in what you emit.