Fix support for boolean parameters in headless mode

Noticed by Daniel Hornung.