Fixed issue with mock assertion against a disposed stream