Performance of a propensity score adjustment in longitudinal studies with covariate‐dependent representation