kcm: Guard against config being null in checkConfig()
This method is called from a queued signal and can be called when the config has been unset. Most of the other methods are already guarded against this but this one was not, causing crashes.
(cherry picked from commit 087fb6d1)