Does enforcing fairness mitigate biases caused by subpopulation shift?