In my Controller, before the save, I added this:
if(!isset($this->request->data['NodeTag'])) {
$this->request->data['NodeTag'][0] = array();
}
This makes it so if I wasn't sending any NodeTag
data, I now pass an empty array, and it updates the habtm
table so that this Node no longer has any rows for NodeTags.
Note: Notice the array structure: ['NodeTag'][0] = array();