fix exception type when loading the version of the package if Django is ...

...not installed