Fixing core dump in NS3/DCE caused by getting the DceApplication Pid too early