activate the legacy xhtml mode if site is an upgrade from 1.0.4

In order not to break child themes, the legacy mode needs to be set upon upgrade. I still think it should be off in the default settings, so some kind of filter needs to be added.

Thinking about using upgrader_post_install in some way.