Fixed #23717 -- Fixed makemessages crash when STATIC_ROOT=None