Revert "Do not store worker result NULL."

This reverts commit c9c90cde840ad964e451fa6db7872455696b3610.
Bugfix: Strange behaviour array_shift

Sometimes array_shift destroys the keys of the array.