Don't add one-time custom application into list of last used.

If an application is created for one time usage via 'Open With...' it will be
still added as last used despite the fact it will not exist after that use.
The commit fixes that issue.