Share more code between MessageViewerDialog and MessageViewerWindow
The only difference in setCurrentIndex was that one variant set the
window title twice (and checked for an empty subject). The new shared
version sets the window title only once (including the special treatment
for empty subject).