graphic, grub2ext, logger: fix logger code when register dbus interface failed