Fixed #22972 -- HashedFilesMixin.patterns should limit URL matches to their respective filetypes

Please see https://code.djangoproject.com/ticket/22972 for context.