Send 'Activity not found' as an error result to Javascript

When opened an URI with window.open(url,'_system') and throws a "Not Activity found", event 'errorloading' it's not fired. With this request will resolve this.