Issue #2284413 by damiankloip: Use addMethodCall() instead of replaceArgument() in RegisterEntityResolversCompilerPass.