Make sure the diff margin passes the document buffer to TryGetTextDocument