Restores console.log() if undefined or set to null.