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

This is a folloup fix to #484 which was merged in 80c299f.
Merge pull request #716 from ezsystems/EZP-19904

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