Fix: run() disabling debug mode.

Changed run(debug=*) default from False to None. None does not change the current mode.
Backported test case to make sure this release does not need the fix.