If we quickly reset the code scanner before a video stream is fetched, the camera tracks are not getting stopped.
Steps to reproduce:
- Have an icon to open popup and camera scanner video preview on this popup
- Close the popup before the video stream is fetched
- Reset the code scanner on clossing popup
Issue is in BrowserCodeReader.stopStreams()
Control is not going into the if condition to stop the media track
