After having applied the patch, check if you have any unused advaced-services that are linked to a servicegroup. Try removing the servicegroup. That should solve the problem.
Yannick: There is a bug in your patch. Advanced-services that are not linked to any host or hostgroup must be removed, regardless of any servicegroup assignment.
I have adapted your patch and commited the new code here:https://github.com/nconf/development/co ... e48a63a08e