[FIX] reverse transfer takes many hours

[FIX] if you reverse transfer on an database with ~ 300000 stock moves, like our, the transfer takes many hours if move.move_dest_id is NULL.