Minor Sanitize::escape() update

If the Datasource is not going to be used, do not access it.