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