fix before_models_committed to actually fire with stuff

as highlighted by @insom before_models_committed will not fire because
it has no changes
Merge upstream pull req https://github.com/mitsuhiko/flask-sqlalchemy/pull/150