Fixed crash when deleting last object from child datasource

The previous fix (https://github.com/danielctull/DCTDataSource/commit/3d41a83a2cb4d14efcf0f212368d73672378e9a4) did not fix the crash for me, but this did.