Regressed in https://github.com/google/flatbuffers/pull/8658. Seems to need a conditional. And I suppose we are missing testing for this scenario. :(