missing: tolerate disctotal == None

This problem:
http://pastebin.ca/2466454
is likely indicative of a bug elsewhere, but defensive coding seems like a
good idea here.
per_disc_numbering: fall back to global indices

If the per-medium values aren't available, use the global numbers.