make the execute action not segfault when using a prompt (bug #4543)