Survive failure in dyn expr building (ROOT-6824).

(cherry picked from commit 3ec3ae00ea047c6fa94cfdc3bf8491bbacf09c73)