Main window: Fix: When opening a doc, cancel correctly all the previous page loading

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