1)use plan title if template title is empty; 2)when event loader has returned an empty cursor (plan has been deleted), we need to us restartloader when we create a new plan