[MacPlatform] Don't crash when a SelectFileDialog has only 0 or 1 filters