toplevel: Add missing sanity check
I don't know if you want to do anything else in this case, but it fixes the crash when I try to open the preferences dialog of the actions panel plugin.
I don't know if you want to do anything else in this case, but it fixes the crash when I try to open the preferences dialog of the actions panel plugin.