Added defensive code for a strange data situation.