GFileChooserScanDir: increment the history count, otherwise we will keep allocating a constant value
GGadgetWildMatch: NULL-check before dereferencing
GListClearSel: avoid NULL ptr dereference
Merge pull request #1644 from adrientetar/file-chooser

GFileChooser: fix various issues that could lead to a crash