Optimism – in the right doses – can help make children resilient in the face of life’s setbacks.