Prevent get_post_class() and get_body_class() from returning duplicate classes.

props Compute.
fixes #28541.

git-svn-id: https://develop.svn.wordpress.org/trunk@28760 602fd350-edb4-49c9-b593-d223f7449a82