Did this work for you? I'm seeing "publish" from the attachment edit screen.

Perhaps we need to `get_post()` first and inspect `post_status` manually?