Fixed some more bugs in Django format (valid)

After fixing the old issues, Alexander's fuzzing scripts
still found some more hashes that made Django segfault...