Fix to avoid DEREF_AFTER_NULL Svace issue in any.h