Don't perform keyboard orders on destroyed actors which crashes the game.

This should fix #2947 and #2328.