better compatibility for mysql STRICT_TRANS_TABLES

Zone/Record: remove columns from query if value is empty