Fixed js such that excluding certain fields from job cloning works correctly. Ref T50815