core: Fix hooking when using a `Method` object as a callable on action runner