Revert "Fix return value of nestedLoopsProgs"

This reverts commit a1798989868c586bc707d4ad92833f45ed1265ea.