[TIMOB-17798]: Add check in openCachedStream