Yes, this is a real bug. When you specify a spawn weapon which is different from the default spawn weapon and happens to be the last weapon you are given on spawn, the code fails at switching to it (as you are already holding it) and then equips your default weapon instead.