Dual Status Return - No U.S. income for Form 1040-NR

I'm a bit confused doing my dual-status return, I hope somebody could clarify a few things for me. 
 
I'm considered resident alien for tax purposes in 2021, but I left the US in September 2021 and was not a resident for the rest of the year. I know that I will have to file dual-status. I already filled out Form 1040 for the time I was a resident and also attached a residency termination statement. For the rest of the tax year, where I'm non-resident,  I have to file Form 1040-NR as my dual-status return and attach Form 1040 as my dual-status statement.
 
I didn't earn any US income for that time I was non-resident, so I think I can fill out $0 everywhere from line 1a-15 in 1040-NR. Also lines 16-24 should be all $0, I think (Please let me know if this is correct).
 
My problem now is the following: I read in the instructions of Form 1040-NR (page 14, credit for taxes paid) that I should "enter the amount from the attached statement (Form 1040 or 1040-SR, line 25d) in the column to the right of line 25d on Form 1040-NR." In my case, that would be $2906 for the federal income tax withheld on my W2 (which is only for the time I was a resident). I also entered line 26 from line 26 in Form 1040, because I had $406 tax credit from 2020 to be applied to 2021. If I add all this up, in line 33 it is $3312. Since I don't have any US income and therefore no taxes I can pay for that, line 24 is $0, and therefore line 34 (line 33 - line 24) is $3312, which is the amount I overpaid and I will get refunded. 
 
I don't think this is correct, since it would mean that I won't pay any federal income tax for 2021 at all, however I have been resident until September 2021. From my return Form 1040 alone, I will get a refund of $978. I assume Form 1040-NR should say $0 just everywhere, also on page 2?