fix ignored IOPub messages with no parent

there was a `continue` without a new `recv`,
which would cause an infinite loop.
Merge pull request #3281 from minrk/noparent

fix ignored IOPub messages with no parent