MODULES: CORE: fix commit e4299faa that incorrectly returns void if no replace is done