Fix undefined index 'trace' in the getCommonTracePart method