HDFS-5616: add missing else block