Fixed crashing line in ctkFileDialog for Mac/Qt5

Fixed the crash for Qt5 only. Added in-code comment describing the issue.