Fix 'use DoesNotExist' error generation.

Reported and golfed by donaldh++.