If for whatever reason ibus wasn't running for the current user the installation failed previously, leaving the user in a broken state until he reboots and tries the installation again. This change detects this situation and skips restarting ibus.