CORE-4547 Fix OK button enable in FileSelectDialog.

Updated FileSelectDialog to only enable the OK button when valid files have been selected.