Fixed bug when habtm model had been unbinded, behavior still thought it has an habtm association to the model