fix null pointer if list of processed orders is empty
Merge remote-tracking branch 'origin/master'