If the course XML is bad, `get_units_with_due_date_options` may run into an exception while walking the course tree.

Can you call this function only when `idash_mode` is `Extensions`?