Fix notifications popup appearing when the referenced post's post_status is not 'published'.