[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.
Merge pull request #1130 from cmarcelo/fix-loading-local-files

[Application] Fix loading local files