Fixing case where the display name is found in the inner loop but replaced with nil in the outer.

This can happen with localized Info.plist files, where the name is only set in the localized files.