Opening another separate bug to track this.
This has been fixed in following commit available since 18.08.7 and up: https://github.com/SchedMD/slurm/commit/399e04b9b64eb6d8