Dealing with certain invalid registry keys