cppcheck: Same expression on both sides of '||'

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