Don't leak job logs if by chance the same id is assigned

This happens when a site is deleted and the table gets some free slots.
This happens on sqlite, unclear on mysql/pgsql, it shouldn't. I think.