Fix detection of optimized-away values after bug 716647