Moved app registry rebuilding after test database setup to work
around post_migrate signal sender / receiver id mismatch.

The signalling problem is usually visible as contrib.sites create_default_site
not being run for the test database ("Site matching query does not exist.").
Take a look at a Django-level solution on "fix/default-site-missing-in-tests"
branch.