Khalwat only apply's to Bumiputra's - Malays.
The Religious Police are very strict, but I guess your friends got ripped off and it was the policemens (not R.police) lucky week! (They get paid a pittance).
If you have your I.D. card/passport you shouldn't have any problems, and particularly on the West Coast.
This sounds like a one off situation to me.