Fix #811 by returning an empty string when there is no document content.