fix exception when command sender is not a player
fixes #265