The relationship between some poor people gaining wealth due to the housing bubble and others losing it due to losing jobs later is a probabilistic relationship, not a deterministic one, so thinking about the two together would require discounting the cost of job loss due to the bubble by some amount.