fixing race condition in site delete and adding publishing profile