Fixed invalid response on "add" and "replace" commands when data is not getting stored.