Fix problem with unwanted application substitution in the Application chooser dialog.

If user selected no name then no replacements should be attempted.