End preview when activating a theme.

Closes habari/habari#425.