SFTP_Stream: fix errors when context isn't defined