Error handling to raise the exception 409 while deleting the parent if it has children. Closes-Bug: #1770636 Change-Id: I87df68992e4e635f009974f5205ca4919a4f2576