sedbase: prevent crash when document not set