fix from 4.2-dev. One more tweek for TRQ-1862. Had a case where not all
resources in a qalter list were getting modified on
array jobs. TRQ-1862