YARN-2707. Potential null dereference in FSDownload. Contributed by Gera Shegalov