[Application] Fix loading local files

Only try to launch an application from the command line if it is a valid
Application ID. This was missed from the last batch of changes.