i had the same thing with this expression:
delta = toWorld(anchorPoint) – thisComp.activeCamera.toWorld([0,0,0]);
radiansToDegrees(Math.atan2(delta[0],delta[2]))
I solved it by moving the camera to the left, in the timeline. So that the camera would exist before frame 1.