ajax: Fix undefined index PHP notices.