Fix read-rest-of-packet-octets, fixing #4.

This function was mixing several levels of API to access to packet
chunks contents and as a result was infinitely looping over a
read-sequence call that would make no progress in the "Access denied"
protocol error case.