Fixes AttributeError: 'RemoteProfilingMiddleware' object has no attribute 'reqnum'