Prevent pushing an empty array as a new element to roles array on actions.
Fix missing lodash require