Fix crash when switching to/from chainsaw quickly

When switching to/from the chainsaw really quickly and repetitively
using the number keys, a crash would sometimes occur. If not a crash,
then the player's weapon sprite would disappear from the screen and the
player couldn't fire.