fix minor issues in less task

* better detection if coreThemes are needed
* only add the work-around subtask if less config is really empty