YARN-2405. NPE in FairSchedulerAppsBlock. (Tsuyoshi Ozawa via kasha)

(cherry picked from commit fa80ca49bdd741823ff012ddbd7a0f1aecf26195)