The DQA is already greyed out/disabled/unavailable when an observation has no IDs/is uploaded with no ID as @grampianshiker noted
You can check for yourself:
https://www.inaturalist.org/observations/identify?iconic_taxa=unknown
This DQA is also already greyed out/disabled/unavailable
when there is no CID (like an observation only has the observer’s initial ID), see any recent observations: https://www.inaturalist.org/observations/identify
This change was implemented in Sept. 2024 as a response to this feature request: https://forum.inaturalist.org/t/prevent-dqa-voting-when-pre-requisite-conditions-arent-met/49859
All the examples in the project you linked to seem to be from Sept 2024 and prior.