Fix potential undefined index "eventmsgs"
Do not set "view_renderer" if AJAX request