Take care of one more place where console was assumed to exist to fix IE8