The Scottish Government has offered talks over the future of a threatened Lothian theatre.