TRUNK-3230:Fix error message for visit attribute types

https://tickets.openmrs.org/browse/TRUNK-3230