CRM-12726 : applied patch and did some modifications

the patch worked great.

Had to do a modification : removed the enable component check condition because if the case has 2 clients and if the client contacts are deleted after disabling case component, the entries for same in case_contact table are been removed, but the case isn't, which is again an inconsistent DB state.