v-if within a slot causes "Cannot read property '0' of null" error
Version
3.0.4
Reproduction link
https://codesandbox.io/s/slotbug-82xf5?file=/src/components/HelloWorld.vue
Steps to reproduce
Click "Toggle bug" button.
What is expected?
Clicking on the button should bring "BUG" word up.
What is actually happening?
Exeption.
It worked correctly in Vue 2.6.11.
Duplicate of https://github.com/vuejs/vue-next/issues/2715