Avoid crashing on startup if DBus isn't running

I am trying to run Okular on a minimal FreeBSD CHERI-RISC-V QEMU
instance and I haven't got DBus running. Without this change, I get
crashes because QDBusConnection::sessionBus().interface() returns NULL
if DBus isn't running.
2 jobs for master in 9 minutes and 36 seconds (queued for 72 minutes and 32 seconds)