Fixed NPE when executing commands that don't use the constructors that
call setResultHandler