After David goes away, it takes some time for Dean to pull himself together, to come half-way down. He's seeing Jon later and he'll know he's high, of course he will, but if Dean manages to keep in check until they get as drunk as they are planning...it should work out.
...and it does.