Replacing ActionDispatch::Static with config.serve_static_assets as it is defined when excluded from Middleware, causing insert_target to be set to ActionDispatch::Static regardless of whether its included or not