HDFS-7359: Apply fix in ImageServlet.