Fixes for behavior with empty HTML fields.
Drop print statements in tests
Merge pull request #2311 from tomchristie/allow-empty-text-or-boolean-html-input-if-not-required

Fixes for behavior with empty HTML fields.