Fixes an NPE.

Change-Id: I4bca1f0f747d01e653a849ad2017719b69843b74