Implicit setup can also fail with ImproperlyConfigured.

Fix #511.