Handle fail condition in getQuestionAndAnswerIds()