Fix PKParser.isEmptyOK.

We need to check that we're actually at the end of the stream, otherwise
we're going to accept every bad parse as an empty one.