guard against undefined values in localStreams
3.0.1