Sets content length only if it hasn't been set yet