If one moves a reverse engineering research into the queue but has not actually started the research, the items should be returned to inventory if removed from the queue. Since the item(s) have not yet been dismantled, they should still be available for use.
When one moves items into the manufacturing queue, resources are subtracted. However, if one removes the item from the queue the resources are returned/refunded. The same should apply to reverse engineering queued items.