Fixes an endless recursion.
If function getNextIdFeatures was called with (Opt(True,IntSpecifier()),True) the same function was called again with the same parameters (_, curCtx) where _ is Opt(..) and curCtx is True.