throw IAE if fieldname is null - Closes #2711