KRACOEUS-8541:only deletes budget periods if they have lineitems from child budgets
Merge pull request #1308 from jwillia/KRACOEUS_8541_2

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