Fixed acts_as_tree for closure_tree compability

Not working with closure_tree in single app without this fix.