Fix the condition

(thank you Kohei!)

Change-Id: I45f94a2e09d24afeec545f4cf84acd209092ab7d
Reviewed-on: https://gerrit.libreoffice.org/8717
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>