Could you tell me how to recreate the bug?
What happened to me was simply that I died while the boss was in that "bayonet" phase. When I returned, the bayonet was still there.
(I had something similar happen in earlier phases, in which it seemed that the boss hadn't reset its state, but it was quite intermittent, as I recall. You may have to try a few times to get it to happen.)