Fixed possible PHP error in AppRequest::getFlattenErrors() for batch fields

A PHP error was thrown whenever AppRequest::errors was multidimensional array.