Returning count=0 in the case of error in app.notifyFinishedRequests

In case of error, this would cause the script to crash