Fix exception with setShortName("") (empty string)