Fixing a small issue in determine whether mapreduce should be run