Better error management when add/update extrafields

Usage of setEventMessage() function