Update checkpoint call as in https://github.com/apache/spark/pull/2735