only execute syncStarter if globalShortcuts isn't empty or nil

Signed-off-by: nuss <st9fan@gmail.com>