deployModules - handle null json modules