Suppress "sequence of required modules" behavior for json data module

Also change the order of if statements a bit to eliminate an
unnecessary (if cheap) call to Program.getModuleExtension.