prevent plugin choking if request comes from console

Hi Victor,

I ran into trouble earlier when I was trying to run a yiic console command with Mailer installed. The error was in the init() function. I've just wrapped it in if statement to prevent the error.