Fixed NullPointerException when new nodes join while running mapreduce o...

...peration

Fixed #2354