Fix slugify() raising an error.