fixed potentiel exception

if config.less is not defined then the line  below will crash.
     window.less.env = 'development';

There is no need for the if (config.less) line as it will be taken care with the config.less || {}