Fix stack exhaustion in CPDF_DataAvail::HaveResourceAncestor()