Fix error when swapping unique equipped weapon on dual wield

Closes #9001