Fixes glTF skeleton loading, which was broken by pull request #4812.