#929 , #930 | Fixing create and update CHW to make agent code insensitive. Also, updating deleted CHW throws an error.