converting null values into delete action for update