Main window: make sure the signals 'img-building-result-xxx' and 'page-thumbnailing-end' are never emitted twice for a same job

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