TortoiseGitMerge: Check valid regular expression in Regex Filter Dialog

Based on TortoiseSVN revision 25329

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