CORE-5832: fixed the code that obtains the external job ID for DE jobs