No output when allow_output is false #3005

Adressing #3005.