Make sure callback happens if a model is not attached to the data source

/to @bajtos or @ritch 

The PR fixes a hang issue during `automigrate` if one of the models is not attached to the data source.

I'll add a test in connectors.
Ouch. Has anybody filled a for that bug yet?