A new HBO documentary celebrates a dazzling comedy star whose early years left her with a lasting sadness