Unfortunately that doesn't help a lot. It must be that PreviewViewCount::$content is not an object, but we'd have to see more of the code to have any chance of knowing why that is. You might be able to change the third line to something like:
Code:
if (is_object(PreviewViewCount::$content) && PreviewViewCount::$content->isSection() && PreviewViewCount::display()) {
(the part in red is added), and it might make the error message go away, but without understanding more of the code I can't tell you what effect that would have on the preview counting.