defend against no-console browsers