fix "tell application" bug when app not found