Fix empty HTML values when a default is provided.

Closes #2280.