`$propertyDisplay` is not something stable, since it can be translated, and in other languages it might look different.

Why not check if `$diff.propType == 'Email'`? That's a new type of field, and the `XWikiUsers` class should be updated to use it, if it didn't happen already.