fixed webconnectionService.getReplacement failure when replacement closure does not exist