TEZ-1669. yarn-swimlanes.sh throws error post TEZ-1556. (Rajesh Balamohan via hitesh)

(cherry picked from commit 9577195f6897d5eb24cf19361a23ca911f7a48cd)