Check for listen data struct validity

Fixes #18360
Does this silently ignore the error?