Fixes crash on Android when resolution is undefined in get user media.