This can happen if the person chooses not to share their age. You can let the customer know this information is needed to provide access to age-restricted items to allow them to decision to share this information.
You can then try the scan again or ask them to present their physical credential to prove identity and age. Follow the standard procedures in place when age and identity can’t be confirmed.