This was simply an oversight, and we’ll fix this for the upcoming 5.2 maintenance release.
I’ve uploaded the fixed script here. To install, go to \your\repository\submission\AfterEffects and backup the original SubmitAEToDeadline.jsx file. Then unzip the attached file to the same folder.