Add an isset check on $obj->cap->edit_private_posts to prevent Strict warnings

Previously, if a CPT didn't define the `edit_private_posts` capability
in `register_post_type()`, this would cause Strict warnings on private
posts.