Fixes the next question functionality so that it won't break when you answer the last question in the database.