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

Updated from https://github.com/django/django/pull/2591