get_comment_authors_ratings fix when global variable post is not set

I had a problem when I used template_redirect hook and was getting to the loop without global $post being set.
I got a notice about that. This is the way I suggest to fix it since this function is called on loop_start.