Add id check for ElementQuery generation in Debug Window

Change-Id: Ic514dbfca241756b74798b3fb057a97ef9cdfa70