HDFS-4013. TestHftpURLTimeouts throws NPE. Contributed by Chao Shi.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1455755 13f79535-47bb-0310-9956-ffa450edef68