Fix #19663, text provided to colorize() shouldn't raise exception if None

See #670 for the initial pull request and https://code.djangoproject.com/ticket/19663 for details.