power: Handle cancelled kbd brightness proxy creation

The code must not access the passed panel if the operation to create the
keyboard proxy has been cancelled. This fixes a possible crash when
switching away from the power panel.
11 jobs for benzea/fix-kbd-crash in 8 minutes and 3 seconds (queued for 4 seconds)
Status Job ID Name Coverage
  Build
passed #111193
build

00:02:11

 
  Test
passed #111195
asan

00:05:51

passed #111194
test

00:04:59

 
  Manual
manual #111200
allowed to fail manual
armv8
manual #111196
allowed to fail manual
flatpak
manual #111199
allowed to fail manual
msan
manual #111201
allowed to fail manual
ppc64le
manual #111197
allowed to fail manual
tsan
manual #111198
allowed to fail manual
ubsan
 
  Review
manual #111202
allowed to fail manual
review
manual #111203
allowed to fail manual
stop_review