Don't call scheduled functions on dead documents