I think what might have happened is that you had at some point some custom/store hair (that the sim had) that you removed/disabled, but the game still thought it had it because it was still in cache.
Could also be a a sim with custom/store hair that just aged up, and the hair didn't had proper data for the new age.