Fixes 2 runtimes

Fixes antag hud runtime due to checking the mind before transferring it.
Fixes floorbot runtime due to typecasting with no sanity checks.
Merge pull request #6404 from tkdrg/moarfuntiems

Fixes 2 runtimes