Fix EZP-22748: Treemenu: Cannot modify header information
 - headers already sent