Fair comment, and i appreciate the OP is likely stressed but without knowing the relationship they have with their client it's tricky to give advice that might not end up being counter-productive.
1) I get the impression that you've been lead to believe the contract will extend BUT your contract end date is your contract end date and treat it as such until you get a contract update in your hand.
2) Work toward this end date personally and professionally.
3) Tell your local client contact that you'll make sure the work is complete for handover/acceptance/whatever criteria in the nicest/most appropriate way you can and that you'll be happy to return if/when a new contract is in place.
4) Let whoever is managing the contract on your behalf (agency or if direct, your local interface) know that that is what you are doing.
5) If the client/agency maintain their hands are tied and its with upper management simply reiterate your position; that beyond the end of contract, you won't be in a position to continuing the work until a new/revised contract is in place.
6) Keep looking for a new role, and in the same circumstance in future start looking earlier...if nothing else, you land something, it's good leverage to have in negotiations.