Added Sg_PseudoPortClosedP to detect if the port is pseudo closed.
Modified get-output-bytevector and extract-output-bytevector not to raise an error
when the given port was pseudo closed (Fixes issue 162).
Added extra checks to above procedures to avoid SEGV (Fixes issue 163).