Handle IndexError

Statements such as:
    Message.objects.medium_priority().order_by("when_added")[0]
can result in an Index Error.  Presumably, the previous line's assertion that count() is nonzero should protect us from this possibility, but there the IndexError sits in my logfile, mocking me.