compute_publish_state -> has_published_version

LMS-11213

@nasthagiri @cpennington one or both please review
can you update the comment on L599 since it now seems outdated with the code?