Hi,
The functionality for getting bones only works for the R2 (cfg) avatars. It will not work for the generation of avatars you are using. You might want to check out the following page, which has information on advanced control of the old avatars:
Avatar_Advanced_Control_old.htm