Gracefully handle ${VARIABLE} expansion errors.
Don't cache failed nodes.