Fixed null target bug

An error in CommandInstance could lead to the target being null, but the
report saying that the target was not null, leading to countless null
pointer exceptions. Now, CommandInstance will handle all target setting,
and will not set the flag to true if the target is null.