Fix error when addAnswer is called with undefined