Evidence for line-of-sight structure in a comparison of X-ray and optical observations of the high-redshift cluster RCS 043938-2904.7