dbus: Add signature checking before using g_variant_get()