the forthcoming release 4.3 includes a new version of the kmedoids algorithm. It then will provide a simple model, providing the medoids.
This means: Your problem will be solved then. But this means your changes are somehow outdated yet
By the way: If you want to test the developer version of 4.3, check out the branch Zaniah. There are some other improvements regarding the clustering, espacially the performance.