display: fix panic in detectChanged

Change-Id: Iec1f6662c053db9f94b707172faac00a5782f193