added provision to moduledata task to output an empty object into the module cache if module data is not needed at all