Main window: Fix: Disable correctly the label list when no document is selected

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