fix for #12415: calculate contentHeight using the last child

A fix for: https://dev.ckeditor.com/ticket/12415

Calculate content height using the last child of the document body.
If there are no children use body instead