Fix undefined index warnings littering the logs