Fix undefined index log entry
Fix undefined index log entry
Add debug info to elgg logs