Fix rare NPE in FairScheduler, caused by null names
Fix HDFS-1118 build error