Properly end parsing of all APC, not just graphics
Commit 89101dc5 introduced APC for the first time in konsole, to support the kitty graphics protocol. Unfortunately, it only properly ended the parsing of APC for kitty graphics APC, causing any other APC to leave konsole in a broken state (e.g. when running esctest).