Fix crash declaring global allocation function with zero parameters. Fixes PR19968!