Improve functionality on bodyless documents.