Unfortunately, I cannot advise you how the earnest money is handled in PA. In Maryland, the earnest money deposit is typically held in escrow by the selling agent's broker unless otherwise requested and negotiated. It is then credited back to the buyer at closing. The seller only receives a copy of the check!
Again, I don't know how the earnest money is handled in PA but since you sound very concerned, I suggest you consult with your Realtor and an attorney. As a general rule, all legal questions should be handled by an attorney.
Good luck & best wishes!