Sync Dialog: Fix cannot show diff of added/deleted file

Fix regression of b751052aef44b4e4bb691622b8d2374afcc15880

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>