Fix EZP-19904: Admin interface redirection to raw treemenu JSON output

This is a folloup fix to #484 which was merged in 80c299f.