Migrated the errors initialization into the filter

Also made the request body attribute null safe as well.