pcbnew: fixes crash when a new part footprint is changed.