getBoundingSphere() does not write value

Update for people who may run into the same issue in the future. There was no bug; the error happened simply because the entity was not ready yet. You can call this function later to resolve this issue. Since the model I wanted to load were pretty large and took up to dozens of seconds to load, I resolved the issue by setting up a setTimeout() function that returns and checks every second.