MDL-30401 qtype_truefalse->get_question_options: improve error handling