Bugfix. Handle case where there is no next question. Refs #9015