To make sure I understand, are you saying that this is the problem setup:
- In the question bank, an single question 'Test question' in 'Test category' with two versions, v1 - ready, and v2 - draft.
- A quiz, set to pick a single random qustion from 'Test category'
- Student attempts quiz.
Expected result: Student gets a quiz attempt with v1 of Test question.
Actual result: Error "There are not enough questions in Test category to create the question Random question (2)."
If so, that is a bug.