Fix the safety check for document.body

Fix telerik/kendo-ui-core#409