Name the var what it really is and detect potential issue
Name the var what it really is and detect potential issue

We were assigning the var, before the type was compared which
could result in accepting "audio" stream for "video" JitsiLocalTrack.

jitsi/lib-jitsi-meet,damencho/lib-jitsi-meet,nevermind-corp/ljm,dmurtari/lib-jitsi-meet,jitsi/lib-jitsi-meet,dmurtari/lib-jitsi-meet,adambowles/lib-jitsi-meet,adambowles/lib-jitsi-meet,jiyeyuran/lib-jitsi-meet