YARN-2813. Fixed NPE from MemoryTimelineStore.getDomains. Contributed by Zhijie Shen