Fixed #22331 -- Fixed migrations ProjectState to ignore unmanaged models