Fixes #3084 - PTY.check should never return nil