Do not create YouCompleteMe object if setup failed. Use a try/except block to prevent backtraces in Vim.