Because of the `v-if` attribute, `this.$refs.tasksTable` may actually be `null` if there are no tasks shown.