Issue with new API output options

I’m calling the create-domain command from my app and if I add json=1, xml=1, or perl=1 then I get an error about having to turn off Trusted Refers in Webmin. However, if I don’t add one of the new output flags it work fine.