Fix for NPE in debug window in IE (#12015)

Change-Id: I74fb57d60f1cdaf85aaacff36093f9f3d640d538