Added null test on localStream stop