Check that empty content is valid only on handlers that allow direct editing.