Fixes NPE. Prevents from asking for permission twice(by obtaining audio+video stream and closing it).