[office] Avoid lockup when going back to mainview from a heavy PDF.