Only call getScDocument when needed
Only call getScDocument when needed

Change-Id: I2dca76af46e63b5dd833f5a60549d4b1a7b03d84
Reviewed-on: https://gerrit.libreoffice.org/1861
Reviewed-by: Olivier Hallot <e61a46a67e9b1fbcb129dece2fa87ce69c4c6f3f@alta.org.br>
Tested-by: Olivier Hallot <e61a46a67e9b1fbcb129dece2fa87ce69c4c6f3f@alta.org.br>

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core