Check if WindowInfosListener is present during remove

This makes it safe for removeWindowInfosListener to be called more than once on the same listener. This may happen if removeWindowInfosListener is called by the client and then from WindowInfosListener's destructor.

Bug: 263311858
Test: presumbits
Change-Id: I90f1b50ab7faa538b866ada65e7bb312b7c30ce0
1 file changed