Fix MODULESTATE_REPLACE bug: checked for a member literally called 'module', rather than for a member named according to the content of module.
Fix MODULESTATE_REPLACE bug: checked for a member literally called 'module', rather than for a member named according to the content of module.

folio-org/stripes-experiments,folio-org/stripes-experiments