[parser] Fix valid not returning true for add and delete