Crash when using option -reset

Hello,

When I try to launch Syncthing with the option -reset, it crashes (on Linux or Windows):

xxx@yyy:~$ syncthing -reset
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x58efee]

goroutine 1 [running]:
github.com/syncthing/syncthing/internal/config.(*ConfigWrapper).Folders(0x0, 0x0)
        /go/src/github.com/syncthing/syncthing/internal/config/wrapper.go:165 +0x3fe
main.resetFolders()
        /go/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:851 +0x179
main.main()
        /go/src/github.com/syncthing/syncthing/cmd/syncthing/main.go:347 +0x1cd2

goroutine 5 [syscall]:
os/signal.loop()
        /usr/local/go/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init·1
        /usr/local/go/src/os/signal/signal_unix.go:27 +0x35

goroutine 7 [sleep]:
github.com/syncthing/syncthing/internal/ignore.cleanIgnoreCaches(0x68c61714000)
        /go/src/github.com/syncthing/syncthing/internal/ignore/cache.go:88 +0x28
created by github.com/syncthing/syncthing/internal/ignore.init·1
        /go/src/github.com/syncthing/syncthing/internal/ignore/cache.go:31 +0x37

goroutine 8 [select]:
github.com/syncthing/syncthing/internal/events.(*Subscription).Poll(0xc20801e680, 0xdf8475800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
        /go/src/github.com/syncthing/syncthing/internal/events/events.go:179 +0x3bf
github.com/syncthing/syncthing/internal/events.(*BufferedSubscription).pollingLoop(0xc208030040)
        /go/src/github.com/syncthing/syncthing/internal/events/events.go:211 +0x48
created by github.com/syncthing/syncthing/internal/events.NewBufferedSubscription
        /go/src/github.com/syncthing/syncthing/internal/events/events.go:205 +0x1c4

goroutine 9 [chan receive]:
main.trackCPUUsage()
        /go/src/github.com/syncthing/syncthing/cmd/syncthing/gui_unix.go:33 +0xec
created by main.init·2
        /go/src/github.com/syncthing/syncthing/cmd/syncthing/gui_unix.go:26 +0x25

Can you please raise an issue on github instead?