Fix problem where questions with no parent are added to the wrong list

Previously, we'd add an `undefined` entry to the questions-by-parent list.