Fix the case when Django template actually uses booleans

using `debug=settings.DEBUG` in the asset definition in template actually uses a boolean, which fails to convert to lower case.