Fixes invalid read in FUNC_API_ParallelReceive

Reported by valgrind.