YARN-2827. Fixed bugs in "yarn queue" CLI. Contributed by Wangda Tan.

(cherry picked from commit 7b190796578c55d1f282188a53ccfa2abd8cab21)