ConnectionDetails: Make them work without a device
A connection, such as VPN, might not have a device. It was guarded in most places already.
QSharedPointer::objectCast on a null pointer is also valid, so the existing checks for the specific type should suffice.
With this a VPN connection shows the VPN type again.