Getting the following error when the player dies in my map.

Couldn't find weapon ""

******* script runtime error *******
cannot cast undefined to bool: (file 'maps\mp\gametypes\tdm.gsc', line 815)
if (level.teamkill_penalty)

*
called from:
(file 'maps\mp\gametypes\_callbacksetup.gsc', line 65)
[[level.callbackPlayerKilled]](eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc);

*
called from:
(file 'maps\mp\gametypes\_callbacksetup.gsc', line 63)
CodeCallback_PlayerKilled(eInflictor, eAttacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc)

*
called from:
(file 'maps\mp\gametypes\_callbacksetup.gsc', line 56)
[[level.callbackPlayerDamage]](eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc);

*
called from:
(file 'maps\mp\gametypes\_callbacksetup.gsc', line 54)
CodeCallback_PlayerDamage(eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc)

*
************************************
********************
ERROR: script runtime error
(see console for details)
********************
----- Server Shutdown -----
==== ShutdownGame ====