Fixes deleting WcmContentDirectory with no children. WCM-861