YARN-2340. Fixed NPE when queue is stopped during RM restart. Contributed by Rohith Sharmaks