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

I'm not seeing why this change within this commit, but it could be just me.