cppcheck: "else if" condition matches previous condition

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