changed coerce to deal with None and empty string for int properties