Remote Caddyfile - invalid memory address or nil pointer dereference

Got the same error using v2.6.4 h1:2hwYqiRwk1tf3VruhMpLcYTg+11fCdr8S3jhNAdnPy8=

2023/04/20 12:41:06.023	INFO	http: panic serving [::1]:50053: runtime error: invalid memory address or nil pointer dereference
goroutine 74 [running]:
net/http.(*conn).serve.func1()
	net/http/server.go:1850 +0xbf
panic({0x231c5a0, 0x35b00c0})
	runtime/panic.go:890 +0x262
github.com/caddyserver/caddy/v2.(*Logging).Logger(0xc00052a840, {0x0?, 0x0?})
	github.com/caddyserver/caddy/v2@v2.6.4/logging.go:202 +0x41
github.com/caddyserver/caddy/v2.Context.Logger({{0x29ff5f0, 0xc00076c4c0}, 0xc00052a810, 0xc0002feaf0, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}}, ...)
	github.com/caddyserver/caddy/v2@v2.6.4/context.go:478 +0xa5
github.com/caddyserver/caddy/v2/caddyconfig.HTTPLoader.LoadConfig({{0x0, 0x0}, {0xc0004923e0, 0x20}, 0x0, 0x0, 0x0}, {{0x29ff5f0, 0xc00076c4c0}, 0xc00052a810, ...})
	github.com/caddyserver/caddy/v2@v2.6.4/caddyconfig/httploader.go:116 +0x89f
github.com/caddyserver/caddy/v2.finishSettingUp({{0x29ff5f0, 0xc00076c4c0}, 0xc00052a810, 0xc0002feaf0, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}}, ...)
	github.com/caddyserver/caddy/v2@v2.6.4/caddy.go:603 +0x5c5
github.com/caddyserver/caddy/v2.run(0xc000806098?, 0x1)
	github.com/caddyserver/caddy/v2@v2.6.4/caddy.go:525 +0x6a5
github.com/caddyserver/caddy/v2.unsyncedDecodeAndRun({0xc0001162a0, 0x58, 0x60}, 0x1)
	github.com/caddyserver/caddy/v2@v2.6.4/caddy.go:337 +0x145
github.com/caddyserver/caddy/v2.changeConfig({0x254675e, 0x4}, {0x254e4a7, 0x7}, {0xc000310600, 0xa0, 0x200}, {0x0, 0x0}, 0x0)
	github.com/caddyserver/caddy/v2@v2.6.4/caddy.go:228 +0x79a
github.com/caddyserver/caddy/v2.Load({0xc000310600?, 0x2560ba4?, 0xc000310600?}, 0xa0?)
	github.com/caddyserver/caddy/v2@v2.6.4/caddy.go:127 +0xaf
github.com/caddyserver/caddy/v2/caddyconfig.adminLoad.handleLoad({}, {0x29fa730, 0xc000536150}, 0xc00014a100)
	github.com/caddyserver/caddy/v2@v2.6.4/caddyconfig/load.go:116 +0x525
github.com/caddyserver/caddy/v2.AdminHandlerFunc.ServeHTTP(0x5?, {0x29fa730?, 0xc000536150?}, 0x13687c0?)
	github.com/caddyserver/caddy/v2@v2.6.4/admin.go:1243 +0x2f
github.com/caddyserver/caddy/v2.(*AdminConfig).newAdminHandler.func2.1({0x29fa730, 0xc000536150}, 0xc00014a100)
	github.com/caddyserver/caddy/v2@v2.6.4/admin.go:235 +0x87
net/http.HandlerFunc.ServeHTTP(0xc0004c8880?, {0x29fa730?, 0xc000536150?}, 0xc000467768?)
	net/http/server.go:2109 +0x2f
github.com/caddyserver/caddy/v2.instrumentHandlerCounter.func1({0x29fda60?, 0xc0004780e0}, 0xc00014a100)
	github.com/caddyserver/caddy/v2@v2.6.4/metrics.go:46 +0xbc
net/http.HandlerFunc.ServeHTTP(0xc000177e20?, {0x29fda60?, 0xc0004780e0?}, 0x12ec565?)
	net/http/server.go:2109 +0x2f
net/http.(*ServeMux).ServeHTTP(0x0?, {0x29fda60, 0xc0004780e0}, 0xc00014a100)
	net/http/server.go:2487 +0x149
github.com/caddyserver/caddy/v2.adminHandler.serveHTTP({0xc0004c8880, 0x0, 0x0, {0xc000013118, 0x1, 0x1}, 0x0}, {0x29fda60, 0xc0004780e0}, 0xc00014a100)
	github.com/caddyserver/caddy/v2@v2.6.4/admin.go:807 +0x532
github.com/caddyserver/caddy/v2.adminHandler.ServeHTTP({0xc0004c8880, 0x0, 0x0, {0xc000013118, 0x1, 0x1}, 0x0}, {0x29fda60, 0xc0004780e0}, 0xc00014a100)
	github.com/caddyserver/caddy/v2@v2.6.4/admin.go:759 +0x7fe
net/http.serverHandler.ServeHTTP({0x29f8a18?}, {0x29fda60, 0xc0004780e0}, 0xc00014a100)
	net/http/server.go:2947 +0x30c
net/http.(*conn).serve(0xc0001474a0, {0x29ff698, 0xc00052a0c0})
	net/http/server.go:1991 +0x607
created by net/http.(*Server).Serve
	net/http/server.go:3102 +0x4db
2023/04/20 12:41:06.496	INFO	admin	stopped previous server	{"address": ":2019"}