notifyDone method, add condition where response content is undefined