Fixed error when using Move or Rotate while no objects are selected.