Fix mockPrompt for `false` response to `confirm`

Fix `mockPrompt` and `DummyPrompt` so they do not replace `false`
with the default value (which is `true`).

This patch fixes a regression introduced by #712. I apologise for that.