Fixed crash retrieving the name of some displays.