Fixed cast check for non-tombstone listeners.

Casting was succeeding and failing at a later point, which meant non-tombstone listeners caused the requests to fail.