Dealt with case when question has no answers.

Added if and for statements to deal with instances when there are fewer
or no answers yet.

Answers should be a list of structures with answer.text and answer.id
so that we can return ratings to the right id.