Add data structure check to listen flag
Merge pull request #18392 from thatch45/listen_fix

Check for listen data struct validity