One could argue that it might actually be impossible for Sanji to become heartless, even temporarily. Because unlike his brothers, Sanji knows what it feels like to have emotions, he experienced them. So it's possible that as long as he can remember feelings like happiness, anger, sadness, love...