Don't look for links in spreadsheet when no active sheet exists
In TextDocumentImpl or PresentationImpl there is a check in updateLinkTargets()
method not to segfault on non existing shapes. Strangely enough, this check does not exist in SpreadsheetImpl. This MR is adding it.