Fixed bug where creating HABTM records when the parent model is also new could result in them not saving