coverity#1242906 Unused value

Change-Id: I7a282e5adc60e4b123469f46fb480805377626b4
(cherry picked from commit a165aa38d9009bf46e203bbdfbac3b7cd8f71b4c)
Reviewed-on: https://gerrit.libreoffice.org/11764
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>