Add check for published_on in exim.py

If you don't get into the if temp: block, published_on is not set, which leads
to an error.