WP-2768 Use document name as title, if title is empty