Main window: don't try to display the doc or the page if it's already displayed

Signed-off-by: Jerome Flesch <jflesch@wyplay.com>