Fix issue with command crashing the server

(First edit), just a check to see if no target is selected.
Merge pull request #141 from tagban/patch-1

Fix issue with command crashing the server