Reading XDG_CURRENT_DESKTOP fails if key does not exists.

Sorry, I just realized my earlier pull request had an error with trying to read a non-existent key.