Fix npe when auto-recording is enabled

Change-Id: I98302643f422d73e3eec3d4b333ee6347de06546
6 files changed