Properly handle nothing to recv in pykernel._abort_queue
The symptom of nothing to recv changed a while ago, but pykernel's abort_queue method was not updated.
This is yet another reason why pykernel and ipkernel should share a parent class - there is huge code duplication, and changes must be made twice and are often missed.
properly handle nothing to recv in pykernel._abort_queue
copied from ipkernel