Fixed notices when saving models with no HABTM associations

This may only be required for recent Cake builds; empty $model->data values were being set as NULL in the past.
Corrected afterSave method signature