A fix of NullPointerException encountered when computing cumulative rewards.