Fixed #22477 -- Removed contrib middleware from the global settings defaults.

Updated from https://github.com/django/django/pull/2591
`MIDDLEWARE_CLASSES` may be a tuple or list.