Fixes turret exploit

Fixes an exploit reported at tgstation/-tg-station#4491. Credit to @MrPerson for the fix.