change the way null values are handled in IPAC table writing

fixes #1344