check-device-ids.py: handle auth cancellation better.
Sort model names by normalized name (bug #1058437).