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