Fix undefined index warning

Change-Id: I1ba99ec8b754f6a60e54c52cc6703a01169ad493