Because damage remains marked on a creature until it's removed as the turn ends, nonlethal damage dealt to Celestial Messenger may become lethal if your Yanling planeswalker leaves the battlefield during that turn.