tests: Safer againt not-installed Django.