No empty string assignment anymore
Added a condition to the assignment of labels and pathname, so that there won't be an error when aborting the file selection.
Added a condition to the assignment of labels and pathname, so that there won't be an error when aborting the file selection.