KRACOEUS-8541:fixed NPE on linking child budget, and only deletes budget...

... periods if they have lineitems from child budgets