Fix returning of hook output on upload completion