In any action involving defendants residing in different counties in which venue is based on residence and an appropriate and timely motion to transfer is made by a defendant not residing in the county, the overruling of the motion is not ground for reversal if he or she proceeds to trial on the merits, unless he or she renews the motion at the close of all the evidence and it appears from the record or the evidence that the defendant residing within the county was joined without probable cause and not in good faith for the purpose of obtaining a judgment against him or her but solely for the purpose of fixing venue in that county.
735 ILCS 5/2-105