Fixed customtree for xulrunner 24.0 and up

Note: Fix is backwards and forwards compatible.