Fixing NPE for time series in the stub.