fixed the random nil error

Occured when clicking both mouse buttons while dragging
removed object from old location without placing in new location