Define method "invoke_parameterless_method" (cherry-pick)

Cherry-pick commit 981068bbf1b8c51f200f10163c442f16c9ecb85e
BugFix: "invoke_parameterless_method" works