fix error when jFilechooser was closed by user without choosing a dir