Tests console presence before using, for IE