EZP-20606: fix adding error messages to array