The replacement engine should have been restamped OR a corrected title issued like I did on my 52
I know what I'd do under the circumstances....and no, its not illegal but different states do it different ways.
(Load the old motor and take it with you...or at least offer for them to see it.)