Fix a crash when updating activity report.

We need to keep old document alive when setting a new one, because
QTextView wants to disconnect itself from some old document's signals.