Fix bad test of whether DEBUG mode is on.