Fix overlay graphics detection

Change-Id: Ic1ef3f6a4e9c74efb07d8a0103543d124567f0d4