more precise detection of the "null to primitive assignment" XStream error.