Fix PHP notice (undefined index).