Guard against calling console.group or groupEnd in case it isn't defined (like in IE < v11). Committed on behalf of Ty Carter.