Fix logic error introduced sometime in the past 6 months that prevented ...

...all modules from being loaded for proxy minions.  Fixes #18799.