[#308] migrated error message sanity check to localized messages object