Issue #2611: MiniBatchKmeans crashes