Added checking of UserAgent to null in FileHandler.