Fallback to Python logger when djprogress' error logging mechanism fails

https://trac.vikingco.com/ticket/15680
Also fixes a typo that caused a crash. @janfabry, can you review this one since you submitted the task?