Accommodated for gyro possibly being null