Do not crash when XDG_CURRENT_DESKTOP is undefined in the environment
The is_desktop_pantheon()
function checks the XDG_CURRENT_DESKTOP
environment variable. Add a NULL
-check in it to avoid crashing when the variable is not defined, which is the case with a number of DEs, plain window managers, and standalone Wayland compositors.