[#589] Test that config['debug'] is True, not that it exists

If it doesn't exist, consider it as False.