throw a exception on cluster methods if it comes before k-means runs

This PR is correspond to #667 

Some clustering RPC cause segfault before it runs clustering calculation.
We should check `kcenters_` before access it.