MOBSDK-599: Input/Output stream retrieval shouldn't return an open stream