Fixed a typo introduced in my fix from 4a9b35aa3
Important note: There is another bug that this not fixed by this diff, but now documented in the test in the form of FIXME comments. The order of calling `parkblock` and `invalidateblock` impacts the chaintip status. This needs to be fixed in a separate diff.