Check for invalid UIDVALIDITY

Possible fix for Bug: 12316