Fixes for IE

group, groupEnd, time and timeEnd are now only invoked if they exist