Handle gitdll exceptions

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Fixed issue #2272: Export Dialog auto select tag if the revision has tag

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