Fixed weak_ptr crashed when rendering bones with no parent.